package com.mmall.product;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import pojo.Product;

@FeignClient(
        url="http://localhost:18085",
        name="product"
)
@RequestMapping("/product")
public interface ProductFeign {
    @GetMapping("/selectByPrimaryKey/{id}")
    Product selectByPrimaryKey(@PathVariable(name="id") Integer id);
}
